package com.health.medicine.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.health.api.model.producer.ProducerRegisterRequest;
import com.health.medicine.model.dto.medicine.AddDrugInfoRequest;
import com.health.medicine.model.dto.medicine.PageQueryDrugInfoRequest;
import com.health.medicine.model.entity.Manufacturer;
import com.health.medicine.model.entity.MedicineInfo;
import org.fisco.bcos.sdk.v3.codec.ContractCodecException;
import org.fisco.bcos.sdk.v3.transaction.model.exception.TransactionBaseException;

/**
* @author zhexueqi
* @description 针对表【medicine_info】的数据库操作Service
* @createDate 2024-08-29 15:46:44
*/
public interface MedicineInfoService extends IService<MedicineInfo> {

    long produce(AddDrugInfoRequest addDrugInfoRequest) throws TransactionBaseException, ContractCodecException;

    Page<MedicineInfo> pageDrugInfo(PageQueryDrugInfoRequest pageQueryDrugInfoRequest);

    Manufacturer getManufacturerByCode(String medicineCode);

    MedicineInfo getDrugInfoByCode(String medicineCode);
}
